﻿namespace EFS.RC.CCAdmin
{
	public partial class MainPage : System.Windows.Controls.UserControl
	{
		public MainPage()
		{
			InitializeComponent();
		}

		private void PaneItem_ShoeSkillList_Click(object sender, System.Windows.RoutedEventArgs e)
		{
			EFS.Common.UI.Controls.Menu.PaneItem paneItem = (EFS.Common.UI.Controls.Menu.PaneItem) sender;

			EFS.Common.UI.Controls.ModalDialogHost wnd = new EFS.Common.UI.Controls.ModalDialogHost();
			wnd.HostedContent = new EFS.RC.CCAdmin.Skills.List();
			wnd.Show(OnChildWIndowClosed);
		}

		private void PaneItem_ShoeClassificationList_Click(object sender, System.Windows.RoutedEventArgs e)
		{
			EFS.Common.UI.Controls.Menu.PaneItem paneItem = (EFS.Common.UI.Controls.Menu.PaneItem)sender;

			EFS.Common.UI.Controls.ModalDialogHost wnd = new EFS.Common.UI.Controls.ModalDialogHost();
			wnd.HostedContent = new EFS.RC.CCAdmin.Classifications.List();
			wnd.Show(OnChildWIndowClosed);
		}

		private void PaneItem_ShoeOfficeEndPointList_Click(object sender, System.Windows.RoutedEventArgs e)
		{
			EFS.Common.UI.Controls.Menu.PaneItem paneItem = (EFS.Common.UI.Controls.Menu.PaneItem)sender;

			EFS.Common.UI.Controls.ModalDialogHost wnd = new EFS.Common.UI.Controls.ModalDialogHost();
			wnd.HostedContent = new EFS.RC.CCAdmin.Offices.List();
			wnd.Show(OnChildWIndowClosed);
		}

		private void PaneItem_ShowCustomeEndPointList_Click(object sender, System.Windows.RoutedEventArgs e)
		{
			EFS.Common.UI.Controls.Menu.PaneItem paneItem = (EFS.Common.UI.Controls.Menu.PaneItem)sender;

			EFS.Common.UI.Controls.ModalDialogHost wnd = new EFS.Common.UI.Controls.ModalDialogHost();
			wnd.HostedContent = new EFS.RC.CCAdmin.Customers.List();
			wnd.Show(OnChildWIndowClosed);
		}

		private void PaneItem_ShowSurveysList_Click(object sender, System.Windows.RoutedEventArgs e)
		{
			EFS.Common.UI.Controls.Menu.PaneItem paneItem = (EFS.Common.UI.Controls.Menu.PaneItem)sender;

			EFS.Common.UI.Controls.ModalDialogHost wnd = new EFS.Common.UI.Controls.ModalDialogHost();
			wnd.HostedContent = new EFS.RC.CCAdmin.Surveys.Survey.List();
			wnd.Show(OnChildWIndowClosed);
		}
		private void PaneItem_HuntGroup_Click(object sender, System.Windows.RoutedEventArgs e)
		{

			EFS.Common.UI.Controls.Menu.PaneItem paneItem = (EFS.Common.UI.Controls.Menu.PaneItem)sender;

			EFS.Common.UI.Controls.ModalDialogHost wnd = new EFS.Common.UI.Controls.ModalDialogHost();
			wnd.HostedContent = new EFS.RC.CCAdmin.HuntGroup.List();
			wnd.Show(OnChildWIndowClosed);
		}

		private void OnChildWIndowClosed(EFS.Common.UI.Controls.ModalDialogHost host)
		{
			//AgentEdit agEdit = (AgentEdit)host.HostedContent;

			//string str = agEdit.AgerntData;
		}
	}

}